package com.github.cyf.service;

import com.github.cyf.domain.po.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.cyf.domain.vo.MenuVo;

import java.util.List;

/**
 * <p>
 * 权限信息表 服务类
 * </p>
 *
 * @author chenyifan
 * @since 2024-10-16
 */
public interface PermissionService extends IService<Permission> {

    List<MenuVo> selectTree();

    List<Permission> queryPermissionByUserId(Long userId);

    List<Permission> queryPermissionByRoleId(Long roleId);

    List<Permission> queryPermissionByRoleIds(List<Long> roleIds);
}
